﻿using System;
using Character;
using UnityEngine;

// Token: 0x02000163 RID: 355
public class BustGravity
{
	// Token: 0x0600094A RID: 2378 RVA: 0x00036968 File Offset: 0x00034B68
	public BustGravity(Human human)
	{
		this.human = human;
	}

	// Token: 0x0600094B RID: 2379 RVA: 0x00036978 File Offset: 0x00034B78
	public void ReCalc()
	{
		BodyParameter body = this.human.customParam.body;
		float num = body.shapeVals[1] * body.bustSoftness * 0.5f;
		float y = Mathf.Lerp(BustGravity.range[0], BustGravity.range[1], body.bustWeight) * num;
		this.human.body.bustDynamicBone_L.setGravity(0, new Vector3(0f, y, 0f), true);
		this.human.body.bustDynamicBone_R.setGravity(0, new Vector3(0f, y, 0f), true);
	}

	// Token: 0x0400090A RID: 2314
	private static float[] range = new float[]
	{
		0f,
		-0.005f
	};

	// Token: 0x0400090B RID: 2315
	private Human human;
}
